<%@ page contentType="text/html;charset=utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>js/calendar/skins/aqua/theme.css">
		<link href="<%=basePath%>js/validate/jquery.validate.css" rel="stylesheet"/>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/style_admin.css">
		<script type="text/javascript" src="<%=basePath%>js/jquery-1.4.2.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/validate/jquery.validate.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/validate/messages_cn.js"></script>
		<script type="text/javascript"
			src="<%=basePath%>js/calendar/calendar.js"></script>
		<script type="text/javascript"
			src="<%=basePath%>js/calendar/calendar-setup.js"></script>
		<script type="text/javascript"
			src="<%=basePath%>js/calendar/lang/calendar-zh_CN.js"></script>
		<script type="text/javascript">
		$(function() {
			$("#subArrangeInfoinsertForm").validate({
				rules:{
					"subjectArrange.teachName":{
						required:true
					},
					"subjectArrange.subName":{
						required:true
					},
					"subjectArrange.className":{
						required:true
					},
					"subjectArrange.classRoom":{
						required:true
					},
					"subjectArrange.date":{
						required:true
					}
				}
			});
		});
		</script>
	</head>
	<body>
		<center>
			<form name="subArrangeInfoinsertForm" id="subArrangeInfoinsertForm"
			 action="subArrangeInfo!subjectArrangeInfoSave" method="post">
				<table >
					<tr>
						<td>
							教师名称:<SELECT name="subjectArrange.teachName" style="padding-right: 50px">
									<s:iterator value="teacherList" status="index">
										<option value=<s:property value="teachName" />><s:property value="teachName" /></option>
									</s:iterator>
									</SELECT>
						</td>
					</tr>
					<tr>
						
						<td>
							课程名称:<SELECT name="subjectArrange.subName" style="padding: 10px">
									<s:iterator value="subjectList" status="index">
										<option value=<s:property value="subName"/>><s:property value="subName"/></option>
									</s:iterator>
									</SELECT>
						</td>
					</tr>
					<tr>
						<td>
							班级名称:<SELECT name="subjectArrange.className" style="padding-right: 50px">
									<s:iterator value="classInfoList" status="index">
										<option value=<s:property value="className" />><s:property value="className" /></option>
									</s:iterator>
									</SELECT>
						</td>
					</tr>
					<tr>
						<td>
							课室名称:<SELECT name="subjectArrange.classRoom" style="padding-right: 50px">
											<s:iterator value="arrangeList" status="index">
												<option value=<s:property value="classRoom" />><s:property value="classRoom" /></option>
											</s:iterator>
											</SELECT>
						</td>
					</tr>
					<tr>
						<td>
							上课日期:<input type="text" name="subjectArrange.date" readonly="readonly"/>
									<img id="dateTime" src="<%=basePath%>js/calendar/skins/aqua/cal.gif"/>
						</td>
					</tr>
					<tr>
						<td>
							<input type="submit" value="提交"/>
							<input type="reset" value="重置"/>
						</td>
					</tr>
				</table>
			</form>
		</center>
		<script type="text/javascript">
			Calendar.setup( {
				inputField : "subjectArrange.date",
				ifFormat : "%Y-%m-%d",
				showsTime : "true",
				button : "dateTime",
				step : 1
			});
		</script>
	</body>
</html>
